function act() {
    var c = cm.getReactor().getState();
    var b = 3;
    if (c != b) {
        return
    }
    var d = cm.getReactor().getReactorId() - 3500011;
    var a = em.getNumberProperty("stage6_color");
    if (a == d) {
        em.setProperty("stage6_color", d + 1)
    } else {
        cm.addPopupSay(1540530, 2000, "不是这个顺序吧？", "");
        cm.getReactor().forceHitReactor(cm.getPlayer(), 1)
    }
}

function randomNum(b, a) {
    switch (arguments.length) {
        case 1:
            return parseInt(Math.random() * b + 1, 10);
            break;
        case 2:
            return parseInt(Math.random() * (a - b + 1) + b, 10);
            break;
        default:
            return 0;
            break
    }
};